package com.sky.service.user;

import com.sky.dto.ShoppingCartDTO;
import com.sky.pojo.ShoppingCart;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

//购物车增删改查菜品功能
public interface ShoppingCartSrevice {
    /**
     * 添加购物车
     * @param dto
     */
    public void insertShoppingCart(ShoppingCartDTO dto);


    /**
     * 查看购物车
     * @return
     */
    public List<ShoppingCart> list();


    /**
     * 删除购物车
     */
    public void clean();
}
